package router

import (
	v1 "gin-wave-im/controller/v1"
	"github.com/gin-gonic/gin"
)

func InitAuthRouter(authGroup *gin.RouterGroup) {
	authGroup.POST("/register", v1.Register)
	authGroup.POST("/login", v1.Login)
}

func InitUserRouter(userGroup *gin.RouterGroup) {
	userGroup.GET("/info", v1.Info)
	userGroup.GET("/search", v1.Search)
	userGroup.PUT("/modify", v1.Modify)
	userGroup.GET("/logout", v1.Logout)
}